package com.webinsky.article.domain;

public enum MisRelationshipSyncType {
	SyncAll(0), SyncBySelect(1);
	
	private int syncType;
	
	private MisRelationshipSyncType(int syncType){
		this.syncType = syncType;
	}
	
	public int getSyncType(){
		return this.syncType;
	}
	
	public static MisRelationshipSyncType parse(int syncType){
		for ( MisRelationshipSyncType misSyncType : MisRelationshipSyncType.values() ){
			if ( misSyncType.getSyncType() == syncType ){
				return misSyncType;
			}
		}
		return null;
	}
}
